package com.df.happylearn.messages;

import com.df.happylearn.BasePresenter;
import com.df.happylearn.BaseView;
import com.df.happylearn.model.MessageInfo;

import java.util.List;

/**
 * Created by dingfeng on 2016/5/25.
 */
public interface MessagesContract {
    interface View extends BaseView<Presenter> {
        void showMessages(List<MessageInfo> list, boolean isFirst);
        void showNoMessages();
        void setReadIds(List<Integer> readIds);
        void addReadId(int id);
    }

    interface Presenter extends BasePresenter {
        void loadMessages(boolean isFirst);
        void getReadedIds();
        void updateReadState(int messageId);
    }
}
